package com.itxx.keyCase;

import java.io.*;

//使用缓冲字符流复制Java文件
public class Test3 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("D:\\develop\\workspace\\Advance_Code\\day12\\src\\com\\itxx\\io\\IoDemo.java"));

        BufferedWriter bw = new BufferedWriter(new FileWriter("day12\\a.java"));
        String s;
        while ((s = br.readLine())!=null){
           bw.write(s);
           bw.newLine();
           bw.flush();
        }
        //释放资源
        bw.close();
        br.close();

    }
}
